package com.chd.driversystem.activity.msgbean;

import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;

import java.util.Objects;

/**
 * Created by feiyu on 17-5-24.
 */

public class NetMsg {
    public static final int POSTING = 0;
    public static final int MAIN = 1;
    public static final int BACKGROUND = 2;
    public static final int ASYNC = 3;

    private int type;
    private String TAG;
    private String RESULT;
    private String ERR_MSG;
    private Long count;
    private Long id;
    private Object obj;

    public NetMsg(int type, String TAG, String RESULT, String ERR_MSG, long count, long id) {
        this.type = type;
        this.TAG = TAG;
        this.RESULT = RESULT;
        this.ERR_MSG = ERR_MSG;
        this.count = count;
        this.id = id;
    }

    public NetMsg(int type, String TAG) {
        this.type = type;
        this.TAG = TAG;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getTAG() {
        return TAG;
    }

    public void setTAG(String TAG) {
        this.TAG = TAG;
    }

    public String getRESULT() {
        return RESULT;
    }

    public void setRESULT(String RESULT) {
        this.RESULT = RESULT;
    }

    public String getERR_MSG() {
        return ERR_MSG;
    }

    public void setERR_MSG(String ERR_MSG) {
        this.ERR_MSG = ERR_MSG;
    }

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }

    @Override
    public String toString() {
        return "ResultMsg{" +
                "type=" + type +
                ", TAG='" + TAG + '\'' +
                ", RESULT='" + RESULT + '\'' +
                ", ERR_MSG='" + ERR_MSG + '\'' +
                ", count=" + count +
                ", id=" + id +
                ", obj=" + obj +
                '}';
    }
}
